<?php
/**
 * PISOneAM
 *
 * 专业IT监控系统
 *
 * @package		PISOneAM
 * @author		ExpressionEngine Dev Team
 * @copyright	Copyright (c) 2008 - 2011, EllisLab, Inc.
 * @license		http://www.m135.com/license.html
 * @link		http://www.m135.com
 * @since		Version 1.0
 * @filesource
 */

class Mnote_topic extends CI_Model
{
	const TB_topic ="Note_topic";
	
	/**
	* 获取系统话题
	* @author PISOne项目开发团队  
	* @param 
	* @return int/bool/object/array
	*/
	function get_systopic()
	{
		$data = array();
		$query = $this->db->select('TopicName')->from(self::TB_topic)->where('Is_System',"yes");
		$query = $this->db->get();
		//print_r($query) ;
		if($query->num_rows()>0)
		{
			$data=$query->result_array();
			//print_r($data);
		}
// 		$query->free_result();//释放数组
		return $data;
	}
} 